package pattern19;

/**
 * 具体的命令ConcreteCommand类，将一个接收者绑定于一个动作，调用接收者的具体方法实现execute
 * @author wdl
 */
public class ConcreteCommand extends BaseCommand {
    /**
     * 设置一个命令接收者
     *
     * @param receiver 接收者
     */
    public ConcreteCommand(Receiver receiver) {
        super(receiver);
    }

    @Override
    public void execute() {
        receiver.action();
    }
}
